package Database;


import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Film {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long filmID;

    @Persistent
    private String filmName;
    
    @Persistent
    private String director;
    
    public Film(String filmName,String director) {
        this.setDirector(director);
        this.setFilmName(filmName);
     }

	private void setFilmID(Long filmID) {
		this.filmID = filmID;
	}

	private Long getFilmID() {
		return filmID;
	}

	private void setFilmName(String filmName) {
		this.filmName = filmName;
	}

	private String getFilmName() {
		return filmName;
	}

	private void setDirector(String director) {
		this.director = director;
	}

	private String getDirector() {
		return director;
	}





	

}

